:root {
  --container: 1400px;
  /* 컨테이너 최대폭 */
  --gutter: 60px;
  /* 좌우 여백 */
  --grid-gap: 24px;
  /* 카드 간격 */
  --radius: 16px;
  --brand: #b0171d;
  --black: #111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --btn-h: 42px;
}

section.notice-write.v19 {
  margin-top: 7%;
}

h2.section-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  color: #1a1a1a;
}

.amc-ceo {
  width: min(1200px, 92vw);
  margin: 148px auto;
  padding: clamp(28px, 5vw, 48px) 0 5px;
  color: inherit;
  font-family: 'Roboto', sans-serif;
}

.nv__files {
  margin-top: 40px;
  padding: 25px 30px;
  background: #f7f7f7;
  border-radius: 8px;
}

section.aging-hero {
  margin-top: -50px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  background: #ffffff;
}

.nv__files-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.nv__files-list li {
  margin-bottom: 8px;
}

.nv__files-list li a {
  color: #333;
  font-size: 15px;
  text-decoration: underline;
}

.nv__files-list .filesize {
  margin-left: 6px;
  color: #888;
  font-size: 13px;
}

.notice.v19,
.notice-view.v19,
.notice-write.v19 {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  font-family: Pretendard, 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--black);
}

/* 카드 그리드 */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  list-style: none;
  padding: 0;
  margin: 0
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr
  }

  .notice__search {
    display: none !important;
    justify-content: center;
    margin: 34px 0 52px;
  }

  h2.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 35px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    color: #1a1a1a;
  }
}

.card__link {
  display: block;
  text-decoration: none;
  color: inherit
}

.card__title {
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 2px 0 6px;
  font-weight: 900;
  transition: color .2s ease
}

.card__date {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 10px
}

.card__thumb {
  border-radius: var(--radius);
  overflow: hidden;
}

.card__thumb img {
  display: block;
  width: 100%;
  height: auto
}

/* 탭+라인 */
.tabline,
.card__tabline {
  position: relative;
  margin: 0 0 12px
}

.tabline::after,
.card__tabline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #d1d5d9
}

.tabpill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  background: #222;
  color: #fff;
  border-radius: 0 14px 0 0;
  font-size: .8rem;
  font-weight: 800
}

/* 호버 빨강 */
.card__link:hover .tabpill {
  background: var(--brand)
}

.card__link:hover .card__tabline::after {
  background: var(--brand)
}

.card__link:hover .card__title {
  color: var(--brand)
}

.card__link:hover .card__date {
  color: var(--brand)
}

/* 페이징 도트 */
.pager {
  display: flex;
  justify-content: center;
  margin: 22px 0 6px
}

.pager .pg {
  display: flex;
  gap: 10px
}

.pager .pgdot,
.pager .pg_current,
.pager .pg_page {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5d9;
  display: inline-block;
  text-indent: -9999px;
  overflow: hidden
}

.pager .pgdot--on,
.pager .pg_current {
  background: #111
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--black);
  line-height: 1
}

.btn.primary {
  background: #111;
  color: #fff;
  border-color: #111
}

.btn.ghost {
  background: #fff
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px
}

.nv__nav,
.nw__btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px
}

/* 보기 */
.nv__title {
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 900;
  margin: 0 0 6px
}

.nv__date {
  color: var(--muted)
}

.nv__content {
  margin-top: 20px;
  line-height: 1.85;
  word-break: keep-all
}

.nv__content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px
}

.nv__content iframe {
  max-width: 100%;
  width: 100%
}

/* 글쓰기 */
#fwrite {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px
}

.nw__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px
}

.nw__row label {
  font-weight: 800
}

.nw__row label.required:after {
  content: " *";
  color: #ef4444
}

.inp,
select {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  width: 100%
}

#char_count_wrap {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 4px
}

.nw__files .filebox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px
}

.file-info {
  font-size: .9rem;
  color: var(--muted)
}


/* 검색 영역 */
.notice__search {
  display: flex;
  justify-content: center;
  margin: 40px 0 60px;
  gap: 8px;
}

.notice__search-select,
.notice__search-input {
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
}

.notice__search-input {
  width: 240px;
}

.notice__search-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
}


/* === Styled Search Bar (v36) === */
.notice__search {
  display: flex;
  justify-content: center;
  margin: 34px 0 52px
}

.notice__search form {
  display: flex;
  gap: 16px;
  align-items: center
}

.sb-select {
  position: relative;
  display: inline-block
}

.sb-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #f3f3f3;
  border: none;
  border-radius: 999px;
  padding: 12px 44px 12px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  outline: none;
}

/* chevron */
.sb-select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat center/12px 12px;
  pointer-events: none;
}

.sb-input {
  position: relative;
  display: inline-block
}

.sb-input input {
  background: #f3f3f3;
  border: none;
  border-radius: 999px;
  padding: 12px 52px 12px 20px;
  width: 320px;
  font-size: 16px;
  color: #111;
  outline: none;
}

.sb-input input::placeholder {
  color: #bdbdbd
}

.sb-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sb-btn svg {
  width: 20px;
  height: 20px;
  stroke: #111;
  fill: none;
  stroke-width: 2
}

.sb-select select:focus,
.sb-input input:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08)
}